<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>我的检测结果</title>
    <script src="js/jquery-3.6.0.js" type="text/javascript"></script>
    <script src="bootstrap/js/bootstrap.js" type="text/javascript"></script>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <script src="layui/layui.js"></script>
    <link rel="stylesheet" href="layui/css/layui.css">
    <script th:src="@{js/vue.js}"></script>
    <script th:src="@{js/vue-axios.js}"></script>
    <style>
        body{
            margin-top: 0;
            padding: 30px;
        }
    </style>
</head>
<body>
    <div id="ntest">
        <ol class="breadcrumb">
            <li><a href="/mainbg">主页</a></li>
            <li><a href="#">核酸检测</a></li>
            <li><a href="#">用户信息</a></li>
        </ol>
        <table class="table table-bordered table-striped table-hover" style="margin-top: 10px">
            <thead>
            <tr class="info">
                <th>姓名</th>
                <th>电话号码</th>
                <th>身份证号</th>
                <th>检测开始时间</th>
                <th>结果录入时间</th>
                <th>检测结果</th>
                <th>检测机构</th>
            </tr>
            </thead>
            <tbody>
            <tr th:if="${nucleicTestList.size()==0||nucleicTestList==null}">
                <td colspan="7" style="text-align: center;font-size: 18px;color: red">暂无检测记录</td>
            </tr>
                <tr th:each="nucleicTest :${nucleicTestList}">
                    <td th:text="${nucleicTest.userName}"></td>
                    <td th:text="${nucleicTest.tel}"></td>
                    <td th:text="${nucleicTest.idCard}"></td>
                    <td th:text="${#dates.format(nucleicTest.time, 'yyyy-MM-dd HH:mm:ss')}"></td>
                    <td th:text="${(nucleicTest.endtime==null)?'待录入':#dates.format(nucleicTest.endtime, 'yyyy-MM-dd HH:mm:ss')}"></td>
                    <td th:text="${(nucleicTest.result==null)?'待录入':(nucleicTest.result==0?'阴性':'阳性')}"></td>
                    <td th:text="${(nucleicTest.name==null)?'待录入':nucleicTest.name}"></td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>